//
//  FSWEmptyView.h
//  TuanLife
//
//  Created by WuJianMac on 2018/1/13.
//  Copyright © 2018年 HuiNaMac. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void(^clickLoadingBlock)(void);
typedef void(^clickAddButtonBlock)(void);
typedef NS_ENUM(NSInteger ,FSWEmptyType) {
    NetError,//网络错误
    NoData,//无数据
    NoAddress,//无地址
    NoOrder,//无订单
    NoCar,//购物车空
    ServiceError//500 404 错误
};
@interface FSWEmptyView : UIView

+ (void)hiddenView:(UIView*)superView;

+ (void)show:(FSWEmptyType)type andShowButton:(BOOL)is_show andMsg:(NSString *)msg andSuperView:(UIView*)superView andBlock:(clickLoadingBlock)block andAddButtonBlock:(clickAddButtonBlock)addBlock;
 
@end
